package cn.smbms.biz.impl;

import java.util.List;

import cn.smbms.dao.IUserRoleDao;
import cn.smbms.bean.model.Staff;
import cn.smbms.bean.model.SysRole;
import cn.smbms.bean.model.UserRole;
import cn.smbms.bean.vo.UserRoleVo;
import cn.smbms.biz.IUserRoleBiz;

public class UserRoleBizImpl implements IUserRoleBiz {
	private IUserRoleDao dao;

	public IUserRoleDao getDao() {
		return dao;
	}

	public void setDao(IUserRoleDao dao) {
		this.dao = dao;
	}

	@Override
	public List<UserRole> getUserRoleByUserRoleVo(UserRoleVo userRoleVo) {
		return dao.getUserRoleByUserRoleVo(userRoleVo);
	}

	@Override
	public int add(UserRole UserRole) {
		return dao.add(UserRole);
	}

	@Override
	public UserRole findUserRoleByUserRoleId(Integer userRoleId) {
		return dao.findUserRoleByUserRoleId(userRoleId);
	}

	@Override
	public int update(UserRole userRole) {
		return dao.update(userRole);
	}

	@Override
	public int delete(Integer userRoleId) {
		return dao.delete(userRoleId);
	}

	@Override
	public Staff fetchStaff(Integer staffId) {
		return dao.fetchStaff(staffId);
	}

	@Override
	public SysRole fetchSysRole(Integer userRoleId) {
		return dao.fetchSysRole(userRoleId);
	}

	@Override
	public List<Staff> StaffList() {
		return dao.StaffList();
	}

	@Override
	public List<SysRole> SysRoleList(Integer sysId) {
		return dao.SysRoleList(sysId);
	}

	@Override
	public List<UserRole> getUserRoleByLenght() {
		return dao.getUserRoleByLenght();
	}

	@Override
	public int update2(UserRole userRole) {
		return dao.update2(userRole);
	}

	@Override
	public UserRoleVo count(String chnName) {
		return dao.count(chnName);
	}

}